Normal Light
Light up the image using normal mapping.
Node Data | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Display name | |||||||||||||||||||||||||||||||||
Normal Light | |||||||||||||||||||||||||||||||||
Internal name | |||||||||||||||||||||||||||||||||
Node_Normal_Light | |||||||||||||||||||||||||||||||||
Inheritances | |||||||||||||||||||||||||||||||||
| Node_Processor | |||||||||||||||||||||||||||||||||
| Node_Normal_Light | |||||||||||||||||||||||||||||||||
Inputs | |||||||||||||||||||||||||||||||||
Input | |||||||||||||||||||||||||||||||||
surface |
Surface In |
||||||||||||||||||||||||||||||||
surface |
Normal Map |
||||||||||||||||||||||||||||||||
color |
Ambient |
||||||||||||||||||||||||||||||||
bool |
Keep Alpha |
||||||||||||||||||||||||||||||||
Input | |||||||||||||||||||||||||||||||||
float |
Height |
||||||||||||||||||||||||||||||||
surface |
Height Map |
||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Outputs | |||||||||||||||||||||||||||||||||
surface |
Surface Out |
||||||||||||||||||||||||||||||||
surface |
Light Only |
||||||||||||||||||||||||||||||||
Attributes | |||||||||||||||||||||||||||||||||
| Color Depth | |||||||||||||||||||||||||||||||||

This node allows you to light up the surface using normal map.

Light Properties
There're 2 types of lights: point and sun. Point light illuminate the surrouding area, sun light will light up the entire image equally.

Related Links
- Base Code: /scripts/node_normal_light/node_normal_light.gml
- Shader [sh_normal_light_apply]: /shaders/sh_normal_light_apply/sh_normal_light_apply.fsh
- Shader [sh_normal_light]: /shaders/sh_normal_light/sh_normal_light.fsh